package com.topfun.vo.payment;

/**
 * Created by huangda on 2017-08-21.
 *充值订单vo
 */
@SuppressWarnings("unused")
public class ChargeOrder {
    // ===========================================================
    // Constants
    // ===========================================================
    public static final int PayType_Wechat = 1;
    public static final int Status_Apply = 0;
    public static final int Status_Success = 1;
    public static final int Status_Fail = 2;
    // ===========================================================
    // Fields
    // ===========================================================
    public String     orderId; // 订单ID, 唯一键
    public long       userId; // 用户ID
    public String     ip; // 申请支付的IP
    public int        payType; // 支付类型, 1微信g公众号支付
    public int       amount; // 支付金额，百分制，即CNY1元为100
    public String     subject; // 订单主题
    public String     description; // 订单描述
    public String     currency;
    public String     country;
    public int        status;//订单状态 0 创建 1支付成功 2失败
    public String        remark;//
    public String     orderTime; // 下单时间
    // Fields extend

    public String token; // 用户授权Token
    public String     openId;
    public String payInfo;//支付信息

    // ===========================================================
    // Constructors
    // ===========================================================
    public ChargeOrder(){
        this.currency = "CNY";
        this.country = "CN";
        this.status = ChargeOrder.Status_Apply;
        this.remark = "";
    }
    // ===========================================================
    // Getter &amp; Setter
    // ===========================================================

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getPayInfo() {
        return payInfo;
    }

    public void setPayInfo(String payInfo) {
        this.payInfo = payInfo;
    }

    // ===========================================================
    // Methods for/from SuperClass/Interfaces
    // ===========================================================

    // ===========================================================
    // Methods
    // ===========================================================

    // ===========================================================
    // Inner and Anonymous Classes
    // ===========================================================
}
